package com.buba.controller;


import com.buba.service.DeviceprocureService;
import common.R;
import entity.device.dto.DeviceprocureDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import utils.pageutil.PageResult;

import java.util.List;

/**
 * <p>
 * 设备采购信息表 前端控制器
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@RestController
@RequestMapping("/deviceprocure")
public class DeviceprocureController {
    @Autowired
    private DeviceprocureService deviceprocureService;

    /**
     * @return common.R
     * @Author atlong
     * @Description 模糊分页全查设备采购信息
     * @Date 2023/6/4 19:45
     * @Param [deviceprocureDto]
     **/
    @PostMapping("selDeviceprocure")
    public R selDeviceprocure(@RequestBody DeviceprocureDto deviceprocureDto) {
        PageResult pageResult = deviceprocureService.selDeviceprocure(deviceprocureDto);
        return R.success(pageResult);
    }

}

